//
//  ANOptionsTableViewCell.m
//  Ants
//
//  Created by ZHM on 16/7/11.
//  Copyright © 2016年 ZHM. All rights reserved.
//

#import "ANOptionsTableViewCell.h"



@implementation ANOptionsTableViewCell

static NSString *ID = @"OPTIONS_CELL";

+ (instancetype)cellWithTableView:(UITableView *)tabalView {
    ANOptionsTableViewCell *cell = [tabalView dequeueReusableCellWithIdentifier:ID];
    if (!cell) {
        cell = [[self alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:ID];
    }
    cell.textLabel.font = [UIFont systemFontOfSize:ANFindToolFontSize];
    return cell;
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        //添加所有子控件
        [self addUpAllChildView];
//        UIView *bgView = [[UIView alloc]init];
//        bgView.backgroundColor = [UIColor brownColor];
//        self.selectedBackgroundView = bgView;
    }
    return self;
}
- (void)addUpAllChildView {
    UIView *underline = [[UIView alloc] initWithFrame:CGRectMake(15, 34.5, ANKeyWindow.width - 15, 0.5)];
    underline.backgroundColor = [UIColor orangeColor];
    [self addSubview:underline];
    _underline = underline;
}

@end
